Asc

Syntax

Konsol:Asc(char, return)

Description

Returns a numeric value of string according to the ASCII value.

Note

Useful for scripting a sorting algorithm.

Example

function main() {
  Var:String sVal="A";
  Var:Number nVal;
  Konsol:Asc(sVal, nVal)   //if sVal has a value of 'A' then nVal will have a value of 65
  if (nVal LT 70) {
    //code---
  }
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net